package Homework5;

import org.openqa.selenium.WebDriver;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

/**
 * Created by Виталий on 25.03.14.
 */
public class RegistrationRozetka2 extends TestSteps {

    //WebDriver driver;

    @DataProvider(name = "test1")
    public Object[][] createData1() {
        return new Object[][] {
                { "http://rozetka.com.ua/", "Vitazzliiaas123487777", "vitaliiasxsdaszd112777aa@gmail.com", "12345adsa" },
                // { "Vitazzliiaas1234", "vitaliiasxsdaszd112@gmail.com", "12345adsa" },
        };
    }
    @Test(dataProvider = "test1")
    public void test(String url, String Name, String Email, String Password) throws Exception {
        openPage(url);
        registrationNewUser(Name, Email, Password);
        closePage();
    }
}
